package com.group01.dto.Address;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Description
 * @Author 翟玉龙
 * @Date 2024/6/23
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class AddressUpdateInfoDTO {
    /**
     * 详细地址
     */
    @NotEmpty(message = "详细地址不能为空")
    private String detailAddr;

    /**
     * 收货地址主键id
     */
    @NotNull(message = "收货地址主键id不能为空")
    private Integer id;

    /**
     * 收件人电话
     */
    @NotEmpty(message = "收件人电话不能为空")
    private String phone;

    /**
     * 收件人姓名
     */
    @NotEmpty(message = "收件人姓名不能为空")
    private String receiverName;

    /**
     * 省市区地址
     */
    @NotEmpty(message = "省市区地址不能为空")
    private String urbanAddr;

}
